package cn.opopopo.design_pattern_learn.行为型.template;

public class TemplateMethodDemo {
    public static void main(String[] args) {
        System.out.println("准备咖啡：");
        Beverage coffee = new Coffee();
        coffee.prepare();

        System.out.println("\n准备茶：");
        Beverage tea = new Tea();
        tea.prepare();
    }
}